package fr.isima.myant;

public class EchoTask extends Task 
{

	private String message;
	
	/**
	 * 
	 */
	public EchoTask() 
	{
		super();
		setMessage("defaultMessage");
	}
	
	public EchoTask(String message) 
	{
		super();
		setMessage(message);
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}
	
	@Override
	public void execute()
	{
		super.execute();
		System.out.println("echo " + message);
	}

}
